package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/url")
public class UrlController {

    @RequestMapping("/{path}")
    public String path(@PathVariable("path")String path){
        return path;// /WEB-INF/view/user.html
    }

    @RequestMapping("/{path1}/{path2}")
    public String path2(@PathVariable("path1")String path1,@PathVariable("path2")String path2){
        return path1+"/"+path2;// /WEB-INF/view/admin/user.html
    }
}
